<!--
 * @Descripttion: 
 * @version: 
 * @Author: dudu
 * @Date: 2020-07-03 14:21:52
 * @LastEditors: dudu
 * @LastEditTime: 2020-07-03 14:36:36
--> 
<template>
  <div>
    <el-input type="text"
              @input='handleClick'
              :value="value" />
  </div>
</template>

<script>
export default {
  name: '',
  props: ['text'],
  data () {
    return {
      value: ''
    };
  },
  methods: {
    handleClick (e) {
      this.value = e
      this.$emit('valueChange', e)
    }
  },
  created () {
    this.value = this.text
  }
}
</script>
<style lang='scss' scoped>
</style>